import httpReqeust from "../config";

const model = "/auth/";

export const login = (data) => {
  return httpReqeust.post(model + "login", data);
};

export const resetPassword = (data) => {
  return httpReqeust.post( "/core/account/resetPassword", data);
};

export const logout = () => {
  return httpReqeust.get(model + "logout");
};

// 获取验证码
export const getCheckCode = () => {
  return httpReqeust.get(model + "getCaptchaBase64");
};

// 根据id查询

// 更新和删除
export const register = (data) => {
  return httpReqeust.post(model + "register", data);
};
